# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo10
# Description:
# Author:       98745
# Date:         2019/3/11
#-------------------------------------------------------------------------------

from numpy import *
a=arange(20)
print(a)
savetxt("a.txt",a,fmt='%d')
savetxt("b.txt",a,fmt='%.2f')
aa=loadtxt('a.txt',dtype='int')
bb=loadtxt('b.txt',dtype='float')
print(aa)
print(bb)
x=arange(16).reshape(4,4)
print(x)
savetxt('x.txt',x,fmt='%d')
y=loadtxt('x.txt',dtype='int')
print(y)